import './style.css'

import axios from 'axios'
import jquery from 'jquery'
import { add,point } from './utils/add'

axios.request({
  url: 'https://jsonplaceholder.typicode.com/posts',
  method: 'get'
})

jquery('body').append('<h1>Hello world</h1>')
jquery('body').append('<div><button>Click me</button></div>')
//添加点击事件
jquery('button').on('click', function () {
  jquery('h1').append('<div><p>Clicked!</p></div>')
})

console.log(add(1,2));


point({x:1,y:2})